/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package src.report.loan;

import java.io.IOException;
import java.math.BigDecimal;
import java.math.RoundingMode;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import net.sf.jasperreports.engine.JRDataSource;
import net.sf.jasperreports.engine.JREmptyDataSource;
import net.sf.jasperreports.engine.JRException;
import src.report.AbstractBaseReportBean;
import src.report.ReportFilter;

/**
 *
 * @author Yusup Jauhari Shandi <in.visi>
 */
@ManagedBean
@SessionScoped

public class KwitansiPertamaBean extends AbstractBaseReportBean{
    private final String COMPILE_FILE_NAME = "loan/kwitansiPertama";
    
 
            
    @Override
    protected JRDataSource getJRDataSource() {
      
        return new JREmptyDataSource();
    }

    @Override
    protected String getCompileFileName() {
        return COMPILE_FILE_NAME;
    }
    
    public String execute(ReportFilter reportFilter) {
	try {
             super.getReportParameters().put("p_transno", reportFilter.getTransNo());
          
            super.prepareReportViaConn();
         //   super.prepareReport();
	} catch (JRException | IOException e) {}
	
        return null;
    }

  
    
}
